Electronic device and method for improving smoothness and precision of positioning

ABSTRACT

An electronic device includes an indoor positioner and a positioning engine server. The indoor positioner has an array antenna to receive a wireless signal from user equipment, and to calculate the angle of arrival (AOA) of the wireless signal according to the phase difference and the time difference. The wireless signal includes status data of the user equipment. The positioning engine server converts the angle of arrival into a set of coordinates that correspond to a position of the user equipment, and inputs the set of coordinates to an IMM module. The IMM module includes a first state module and a second state module. The IMM module calculates weighting values for the first state module and the second state module according to the status data of the user equipment, and outputs an estimated set of coordinates according to the set of coordinates and the weighting values.

CROSS REFERENCE TO RELATED APPLICATIONS

This application claims priority to and the benefit of TaiwanApplication No. 109120307, filed on Jun. 17, 2020, the entirety of whichis incorporated by reference herein.

FIELD OF THE INVENTION

The invention relates to an electronic device, especially one relatingto improving the smoothness and precision of positioning.

DESCRIPTION OF THE RELATED ART

Indoor positioning tags mainly continuously transmit wireless signalsthrough their own wireless signal transmitters, and the wireless signalsare received by indoor positioning wireless receivers. The indoorpositioning wireless receivers transfers data included in the receivedwireless signals to a back-end positioning engine server to calculatepositions of the indoor positioning tags. However, there are oftenerrors in the positioning process. A common method is to add a Kalmanfilter (KF) to the positioning engine server, so that the positioningcan be smoother and more accurate.

However, during the movement of an object equipped with an indoorpositioning wireless tag, the object may sometimes be stationary, andsometimes be moving (e.g., walking or running). In the scenariodescribed above, a Kalman filter model is not suitable for thesituation.

BRIEF SUMMARY OF THE INVENTION

In order to resolve the issue described above, an embodiment of theinvention provides an electronic device. The electronic device includesan indoor positioner and a positioning engine server. The indoorpositioner has an array antenna to receive a wireless signal from userequipment, and to calculate the angle of arrival (AOA) of the wirelesssignal according to the phase difference and the time difference. Thewireless signal includes status data. The positioning engine serverconverts the angle of arrival into a set of coordinates that correspondto a position of the user equipment. The positioning engine serverinputs the set of coordinates into an IMM module. The IMM moduleincludes a first state module and a second state module. The IMM modulecalculates weighting values for the first state module and the secondstate module according to the status data of the user equipment, andoutputs an estimated set of coordinates according to the set ofcoordinates and the weighting values.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention can be more fully understood by reading the subsequentdetailed description with references made to the accompanying figures.It should be understood that the figures are not drawn to scale inaccordance with standard practice in the industry. The size of thecomponents may be enlarged or reduced to provide clear illustration.

FIG. 1 shows a schematic diagram of an indoor positioning system inaccordance with some embodiments of the disclosure.

FIG. 2 shows a schematic diagram of an operation of a Kalman filter inaccordance with some embodiments of the disclosure.

FIG. 3 shows a flow chart of a method for improving smoothness andprecision of positioning in accordance with some embodiments of thedisclosure.

FIG. 4 shows a schematic diagram of a comparison between a measured setof coordinates Y_(k+1) and an estimated set of coordinates {circumflexover (X)}_(k+1|k+1) in accordance with some embodiments of thedisclosure.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 1 shows a schematic diagram of an indoor positioning system inaccordance with some embodiments of the disclosure. As shown in FIG. 1,an indoor positioning system 100 includes a plurality of indoorpositioners 102-1, 102-2, . . . , 102-n, a positioning engine server104, and indoor positioning tags 106-1 and 106-2. In some embodiments,the number of indoor positioning tags is not limited to 2, and thepresent invention takes 2 indoor positioning tags as an example. Takingthe indoor positioning tag 106-1 as an example, the indoor positioningtag 106-1 has a wireless signal transmitter 108 and a sensor 110. Insome embodiments, the wireless signal transmitter 108 periodicallytransmits Bluetooth beacons. The sensor 110, for example, is an inertialmeasurement unit (IMU). When the wireless signal transmitter 108transmits a Bluetooth beacon, the Bluetooth beacon includes currentstatus data (including a motion state and a velocity direction of theindoor positioning tag 106-1) from the sensor 110, which is received byan array antenna of the indoor positioner 102-1.

In some embodiments, the indoor positioners 102-1, . . . , 102-n can beinstalled in different locations indoors (for example, in corridors,corners of walkways, stairs, or rooms). Each of the indoor positionershas an array antenna to receive the wireless signal transmitted from theindoor positioning tags 106-1, 106-2. The indoor positioners 102-1, . .. , 102-n convert the wireless signal to IQ sampling data. The IQsampling data record sine wave intensity and phase variation of thewireless signal. The phase difference and time difference of thewireless signal received by the array antenna can be used to calculatethe angles of arrival (AOA) of the indoor positioner tag 106-1 and 106-2relative to the indoor positioner (i.e. the angle of incidence of thewireless signal transmitted from the indoor positioner tag 106-1 and106-2). The indoor positioners 102-1, . . . , 102-n further sendsinformation of the angles of arrival to the positioning engine server104.

The positioning engine server 104 executes (1) a packet receivingsubroutine, (2) an angle of arrival (AOA) data processing subroutine,(3) a position filtering subroutine, and (4) a smoothing subroutine. Asshown in FIG. 1, after indoor positioners 102-1, . . . , 102-n convertthe received wireless signal (for example, Bluetooth beacons) to data ofangles of arrival (AOA data), and further send the AOA data to thepositioning engine server 104. The (1) packet receiving subroutinereceives the AOA data firstly, then the (2) AOA data processingsubroutine converts the AOA data into a corresponding set ofcoordinates. Finally, the (3) position filtering subroutine and the (4)smoothing subroutine filter the coordinates by recursive filtering toimprove the smoothness and precision of the coordinates.

In the (4) smoothing subroutine, the positioning engine server 104 firstexecutes an interacting multiple model (IMM) algorithm to generate anIMM module. After that, the positioning engine server 104 inputs the setof coordinates from the (2) AOA data processing subroutine into the IMMmodule. The IMM module is based on Kalman filters (KF). In other words,the IMM module consists of multiple Kalman filters. FIG. 2 shows aschematic diagram of a Kalman filter (KF) 200 in accordance with someembodiments of the disclosure. As shown in FIG. 2, Kalman filter 200 isan optimal linear minimum mean square error estimator developed in astate space mode as a recursive filtering. The characteristic of Kalmanfilter 200 is that it does not store data in the past iteration samplingtime point. Kalman filter 200 obtains the current state estimation (suchas {circumflex over (X)}_(k+1|k+1) in FIG. 2) through the iterationoperation of the Kalman filter formula based on the current measuredsignal (such as Y_(k+1) in FIG. 2 and the current set of coordinates ofthe indoor positioning tag 106-1 in FIG. 1) and the state estimation inthe previous interaction sampling time point (such as {circumflex over(X)}_(k|k) in FIG. 2). X_(0|0) in FIG. 2 represents an initial value (oran initial coordinate) input to the Kalman filter.

In some embodiments, the initial value X_(0|0) is an average value of 5sets of coordinates from the (2) AOA data processing subroutine (but thepresent invention is not limited thereto), so that the estimatedcoordinates output by the Kalman filter can quickly approximate theinput measured set of coordinates. Q in FIG. 2 is process noise duringthe recursive filtering process, and R in FIG. 2 is White Gaussian noiseor measured noise during the recursive filtering process. In someembodiments, the precision and smoothness of the estimated set ofcoordinates output by the Kalman filter or IMM module can be adjusted bysetting values of process noise Q and White Gaussian noise R.

The target object estimated by the Kalman filter (such as indoorpositioning tags 106-1 in FIG. 1) is an object with single-state, i.e.moving or stationary state. If the moving/stationary state of the targetobject meets the model assumption of the Kalman filter, the trackingperformance of the target object is optimal. When the motion state ofthe target object changes (for example, from the stationary state to themoving state, or from the moving state to the stationary state), theKalman filter cannot immediately respond to the change of the motionstate, resulting in poor tracking performance of the Kalman filter. Atthis time, IMM with two or more different state models can be used torespond to changes of the state by switching between the different statemodels.

In other words, IMM module (or IMM estimator) uses multiple Kalmanfilters to track a target object simultaneously, and takes into accountthe interaction between multiple state models by updating the respectiveweighting values of multiple Kalman filters. In target tracking, themost important feature of the IMM module is to iteratively update theprobability of each state models by the received measured signal (suchas Y_(k+1) in FIG. 2). In addition, compared with single Kalman filter,the IMM module with the interaction between multiple state models ismore adaptable to the changes in the motion state of the target objectand more effective in tracking the target.

Therefore, when the (4) smoothing subroutine of the positioning engineserver in FIG. 1 is executed, the IMM module, which includes astationary module and a moving module, calculates and adjusts theweighting values assigned to the stationary module and the moving moduleaccording to status data (a motion state and a velocity direction) ofthe target (such as the indoor positioning tag 106-1). Besides, the IMMmodule calculates and outputs an estimated set of coordinates (such as{circumflex over (X)}_(k+1|k+1) in FIG. 2) according to the set ofcoordinates from the (2) AOA data processing subroutine. In someembodiments, the stationary module of the IMM module is a Kalman filter,and the moving state module is another Kalman filter. In other words,the IMM module includes two Kalman filters. During the recursiveoperation of the IMM module, a first weighting value (μ₁) can becalculated by the stationary module, and a second weighting value (μ₂)can be calculated by the moving module. When user equipment is in astationary state, the first weighting value (μ₁) is larger than thesecond weighting value (μ₂). When the user equipment is in a movingstate, the second weighting value (μ₂) is larger than the firstweighting value (μ₁). The sum of the first weighting value (μ₁) and thesecond weighting value (μ₂) is equal to 1. Generally, at a time pointk+1, the IMM module calculates the first weighting value (μ₁) of thestationary module using the following formula.

${\mu_{1}\left( {k + 1} \right)} = {\frac{1}{\overset{\_}{c}}p_{12}{p_{11}\left( {k + 1} \right)}}$

where μ₁(k+1) is the first weighting value of the stationary module attime point k+1, c is a normalization constant, p₁₂ is the probability oftransferring from the stationary module to the moving module, andp₁₁(k+1) is the probability of staying in the stationary module at timepoint k+1.

At time point k+1, the IMM module calculates the second weighting value(μ₂) of the moving module using the following formula.

${\mu_{2}\left( {k + 1} \right)} = {\frac{1}{\overset{\_}{c}}p_{21}{p_{22}\left( {k + 1} \right)}}$

where μ₂(k+1) is the second weighting value of the stationary module attime point k+1, e is the normalization constant, p₂₁ is the probabilityof transferring from the moving module to the stationary module, andp₂₂(k+1) is the probability of staying in the moving module at timepoint k+1. Since the probability (k+1) and p₂₂(k+1) may be updated witheach recursive filtering calculation during the recursive filteringcalculation of the IMM module, the first weighting value (μ₁) and thesecond weighting value (μ₂) may also be updated with each recursivefiltering calculation.

Refer to FIG. 2, at time point k+1, the stationary module outputs afirst estimated set of coordinates {circumflex over (X)}_(k+1|k+1) ¹(not shown) according to the input measured signal or the input measuredset of coordinates (such as Y_(k+1) in FIG. 2). The moving module alsooutputs a second estimated set of coordinates {circumflex over(X)}_(k+1|k+1) ² (not shown) according to the input measured signal orthe input measured set of coordinates (such as Y_(k+1) in FIG. 2). Theestimated set of coordinates {circumflex over (X)}_(k+1|k+1) are equalto the first estimated set of coordinates {circumflex over(X)}_(k+1|k+1) ¹ multiplied by the first weighting value (μ₁) plus thesecond estimated set of coordinates {circumflex over (X)}_(k+1|k+1) ²multiplied by the second weighting value (μ₂), that is {circumflex over(X)}_(k+1|k+1)={circumflex over (X)}_(k+1|k+1) ¹*μ₁+{circumflex over(X)}_(k+1|k+1) ²*μ₂.

In details, refer to FIG. 2, the stationary module receives the set ofcoordinates of the user equipment (for example, the indoor positioningtag 106-1 in FIG. 1) at the current time point, and multiplies the setof coordinates by a first matrix to obtain the first estimated set ofcoordinates. The relationship between the set of coordinates, the firstestimated set of coordinates, and the first matrix is expressed asfollows in equation 1.

$\begin{matrix}{{{\overset{\hat{}}{X}}_{{k + 1}|{k + 1}}^{1} = {\begin{bmatrix}x \\y \\z \\v_{x} \\v_{y} \\v_{z}\end{bmatrix}_{X} = {{\Phi_{k + 1}^{1}*Y_{k + 1}} + \begin{bmatrix}w_{x} \\w_{y} \\w_{z} \\w_{v_{x}} \\w_{v_{y}} \\w_{v_{z}}\end{bmatrix}}}}{\Phi_{k + 1}^{1} = \begin{bmatrix}1 & 0 & 0 & 0 & 0 & 0 \\0 & 1 & 0 & 0 & 0 & 0 \\0 & 0 & 1 & 0 & 0 & 0 \\0 & 0 & 0 & 0 & 0 & 0 \\0 & 0 & 0 & 0 & 0 & 0 \\0 & 0 & 0 & 0 & 0 & 0\end{bmatrix}}} & {{equation}\mspace{20mu} 1}\end{matrix}$

{circumflex over (X)}_(k+1|k+1) ¹ is the first estimated set ofcoordinates at time point k+1. Y_(k+1) is the input measured set ofcoordinates (i.e. the set of coordinates corresponding to the positionof the user equipment at time point k+1). x, y, z are positions includedin the first estimated set of coordinates. v_(x), v_(y), v_(z) arevelocities included in the first estimated set of coordinates; w_(x),w_(y), w_(z), w_(vx), w_(vy), w_(vz) are process noises or measuringnoises. Φ_(k+1) ¹ is a state transpose matrix of the stationary module,that is, the first matrix. It is noted that since the stationary moduledoes not need to consider the velocities in the input measured signal(such as Y_(k+1) in FIG. 2), the values in fourth column and fourth row,fifth column and fifth row, and the sixth column and sixth row in thestate transpose matrix Φ_(k+1) ¹ of the stationary module are all zero.In some embodiments, the precision and smoothness of the first estimatedset of coordinates of the stationary module can be adjusted by settingvalues of w_(x), w_(y), w_(z), w_(vx), w_(vy), w_(vz).

In details, refer to FIG. 2, the moving module receives the set ofcoordinates of the user equipment (for example, the indoor positioningtag 106-1 in FIG. 1) at the current time point, and multiplies the setof coordinates by a second matrix to obtain the second estimated set ofcoordinates. The relationship between the set of coordinates, the secondestimated set of coordinates, and the second matrix is expressed asfollows in equation 2.

$\begin{matrix}{{{\overset{\hat{}}{X}}_{{k + 1}|{k + 1}}^{2} = {\begin{bmatrix}x \\y \\z \\v_{x} \\v_{y} \\v_{z}\end{bmatrix}_{X} = {{\Phi_{k + 1}^{2}*Y_{k + 1}} + \begin{bmatrix}w_{x} \\w_{y} \\w_{z} \\w_{v_{x}} \\w_{v_{y}} \\w_{v_{z}}\end{bmatrix}}}}{\Phi_{k + 1}^{2} = \begin{bmatrix}1 & 0 & 0 & {d\; T} & 0 & 0 \\0 & 1 & 0 & 0 & {d\; T} & 0 \\0 & 0 & 1 & 0 & 0 & {d\; T} \\0 & 0 & 0 & 1 & 0 & 0 \\0 & 0 & 0 & 0 & 1 & 0 \\0 & 0 & 0 & 0 & 0 & 1\end{bmatrix}}} & {{equation}\mspace{20mu} 2}\end{matrix}$

{circumflex over (X)}_(k+1|k+1) ² is the second estimated set ofcoordinates at time point k+1. Y_(k+1) is the input measured set ofcoordinates (i.e. the set of coordinates corresponding to a position ofthe user equipment at time point k+1). x, y, z are positions included inthe second estimated set of coordinates. v_(x), v_(y), v_(z) arevelocities included in the second estimated set of coordinates; w_(x),w_(y), w_(z), w_(vx), w_(vy), w_(vz) are process noises or measuringnoises. dT is a time interval of recursive sampling. Φ_(k+1) ² is astate transpose matrix of the moving module, that is, the second matrix.It is noted that since the moving module needs to consider thevelocities in the input measured signal (such as Y_(k+1) in FIG. 2), thevalues in fourth column and fourth row, fifth column and fifth row, andthe sixth column and sixth row in the state transpose matrix Φ_(k+1) ²of the moving module are all one. In some embodiments, the precision andsmoothness of the second estimated set of coordinates of the movingmodule can be adjusted by setting values of w_(x), w_(y), w_(z), w_(vx),w_(vy), w_(vz).

The following Table 1 shows matrixes required to be used and parametersrequired to be set during the recursive filtering calculation by thestationary module and the moving module of the IMM module in the presentinvention.

TABLE 1 stationary module moving module $P_{0} = \begin{bmatrix}1 & 0 & 0 & 0 & 0 & 0 \\0 & 1 & 0 & 0 & 0 & 0 \\0 & 0 & 1 & 0 & 0 & 0 \\0 & 0 & 0 & 1 & 0 & 0 \\0 & 0 & 0 & 0 & 1 & 0 \\0 & 0 & 0 & 0 & 0 & 1\end{bmatrix}$ $P_{0} = \begin{bmatrix}1 & 0 & 0 & 0 & 0 & 0 \\0 & 1 & 0 & 0 & 0 & 0 \\0 & 0 & 1 & 0 & 0 & 0 \\0 & 0 & 0 & 1 & 0 & 0 \\0 & 0 & 0 & 0 & 1 & 0 \\0 & 0 & 0 & 0 & 0 & 1\end{bmatrix}$ $H = \begin{bmatrix}1 & 0 & 0 & 0 & 0 & 0 \\0 & 1 & 0 & 0 & 0 & 0 \\0 & 0 & 1 & 0 & 0 & 0\end{bmatrix}$ $H = \begin{bmatrix}1 & 0 & 0 & 0 & 0 & 0 \\0 & 1 & 0 & 0 & 0 & 0 \\0 & 0 & 1 & 0 & 0 & 0\end{bmatrix}$ $R_{1} = \begin{bmatrix}0.01 & 0 & 0 \\0 & 0.01 & 0 \\0 & 0 & 0.01\end{bmatrix}$ $R_{2} = \begin{bmatrix}0.09 & 0 & 0 \\0 & 0.09 & 0 \\0 & 0 & 0.09\end{bmatrix}$ $Q_{1} = \begin{bmatrix}\sigma_{x}^{2} & 0 & 0 & 0 & 0 & 0 \\0 & \sigma_{y}^{2} & 0 & 0 & 0 & 0 \\0 & 0 & \sigma_{z}^{2} & 0 & 0 & 0 \\0 & 0 & 0 & \sigma_{v_{x}}^{2} & 0 & 0 \\0 & 0 & 0 & 0 & \sigma_{v_{y}}^{2} & 0 \\0 & 0 & 0 & 0 & 0 & \sigma_{v_{z}}^{2}\end{bmatrix}$ $Q_{2} = \begin{bmatrix}\sigma_{x}^{2} & 0 & 0 & 0 & 0 & 0 \\0 & \sigma_{y}^{2} & 0 & 0 & 0 & 0 \\0 & 0 & \sigma_{z}^{2} & 0 & 0 & 0 \\0 & 0 & 0 & \sigma_{v_{x}}^{2} & 0 & 0 \\0 & 0 & 0 & 0 & \sigma_{v_{y}}^{2} & 0 \\0 & 0 & 0 & 0 & 0 & \sigma_{v_{z}}^{2}\end{bmatrix}$ $\begin{bmatrix}p_{11} & p_{12} \\p_{21} & p_{22}\end{bmatrix} = \begin{bmatrix}0.97 & 0.03 \\0.03 & 0.97\end{bmatrix}$

As shown in Table 1, regardless of the stationary module or the movingmodule of the IMM module, the same identity matrix Po and the samemeasuring matrix H are used. The measuring matrix H is used to extractthe x, y, and z components of the measured signal (for example, Y_(k+1)in FIG. 2). In some embodiments, the Gaussian white noises R₁ and R₂ canbe set as shown in Table 1 above. The White Gaussian noise R₁ means thatthe stationary module sets the range of each 10 cm (0.1 meter) in the x,y, and z axes as the respective allowable error range of x, y, and z, sothat the system can obtain more accurate values of x, y, and z.Similarly, the White Gaussian noise R₂ means that the moving module setsthe range of each 30 cm (0.3 meter) in the x, y, and z axes as therespective allowable error range of x, y, and z. It should be noted thatthe above error range is normal distribution.

As to process noises Q₁ and Q₂, the variation σ_(x) ² represents thevariation of the input measured signal (for example, Y_(k+1) in FIG. 2)in the x direction. Similarly, the variation σ_(y) ² represents thevariation of the input measured signal in the y direction, and thevariation σ_(z) ² represents the variation of the input measured signalin the z direction. The variation σ_(v) _(x) ² represents the variationof the input measured signal (for example, Y_(k+1) in FIG. 2) in the xdirection. Similarly, the variation σ_(v) _(y) ² represents thevariation of the input measured signal in the y direction, and thevariation σ_(v) _(z) ² represents the variation of the input measuredsignal in the z direction.

In some embodiments, the variations σ_(x) ², σ_(y) ² and σ_(z) ² in theprocess noise Q₁ of the stationary module are set to 0.0004 (i.e.(0.02)²), and the variations σ_(v) _(x) ₂, σ_(v) _(y) ² and σ_(v) _(z) ²are set to 0. In some embodiments, the variations σ_(x) ², σ_(y) ² andσ_(z) ² in the process noise Q₂ of the moving module are set to 0.0064(i.e. (0.08)²), and the variations σ_(v) _(x) ², σ_(v) _(y) ² and σ_(v)_(z) ² are set to 0.04 (i.e. (0.2)²).

In some embodiments, the present invention sets the initial probabilityof the module transferring possibility matrix

$\quad\begin{bmatrix}p_{11} & p_{12} \\p_{21} & p_{22}\end{bmatrix}$of the IMM module as

$\begin{bmatrix}{{0.9}7} & {{0.0}3} \\{{0.0}3} & {{0.9}7}\end{bmatrix}.$In other words, during the recursive filtering calculation of the IMMmodule, the probability that the stationary module stays in thestationary module is preset to 0.97, the probability that the movingmodule stays in the moving module is preset to 0.97. The probability oftransferring from the moving module to the stationary module is 0.03,and the probability of transferring from the stationary module to themoving module is 0.03. With the recursive filtering calculation of theIMM module, the IMM module updates the module transferring possibilitymatrix

$\quad\begin{bmatrix}p_{11} & p_{12} \\p_{21} & p_{22}\end{bmatrix}$between the stationary module and the moving module according to theinput measured signal or the input measured set of coordinates (that is,Y_(k+1) in FIG. 2) and weighting values (that is, the first weightingvalue (μ₁) and the second weighting value (μ₂).

FIG. 3 shows a flow chart of a method for improving smoothness andprecision of positioning in accordance with some embodiments of thedisclosure. As shown in FIG. 3, the method for improving smoothness andprecision of positioning includes: receiving a wireless signal from userequipment (step S300); calculating the angle of arrival (AOA) of thewireless signal according to the phase difference and the timedifference; wherein the wireless signal comprises status data of theuser equipment, and the status data comprise a motion state and avelocity direction of the user equipment (step S302); converting theangle of arrival into a set of coordinates corresponding to the positionof the user equipment (step S304); executing an interacting multiplemodel (IMM) algorithm to generate an IMM module (step S306); inputtingthe set of coordinates to the IMM module; wherein the IMM modulecomprises a first state module and a second state module (step S308);calculating and adjusting weighting values assigned to the first statemodule and the second state module according to the status data of theuser equipment by the IMM module (step S310); and outputting anestimated set of coordinates according to the coordinate and theweighting values (step S312).

In some embodiments, the indoor positioner 102-1 in FIG. 1 executes thesteps S300 and S302. The positioning engine server 104 in FIG. 1executes the steps S304, S306, S308, S310 and S312. The positioningengine server 104 executes the steps S308, S310 and S312 through the IMMmodule. In some embodiments, the IMM module is stored in a storage ofthe positioning engine server 104. When the steps S308, S310, and S312are executed, a processor of the positioning engine server 104 reads andexecutes the algorithm of the IMM module stored in the storage toachieve the purpose of improving smoothness and precision ofpositioning.

FIG. 4 shows a schematic diagram of a comparison between a measured setof coordinates Y_(k+1) and an estimated set of coordinates {circumflexover (X)}_(k+1|k+1) in accordance with some embodiments of thedisclosure. As shown in FIG. 4, a measured set of coordinates FIG. 400includes a path 410, and the path 410 is the path of the measured set ofcoordinates (Y_(k+1) in FIG. 2) in time sequences. A measured set ofcoordinates FIG. 402 includes a path 420, and the path 420 is the pathof the measured set of coordinates ({circumflex over (X)}_(k+1|k+1) inFIG. 2) in time sequences. Obviously, the IMM module could smoothunreasonable sets of coordinate points. Through the interaction betweenthe measured value and the estimated value of the IMM module, theoptimal root-mean-square errors (RMSE) obtained by the IMM module willbe relatively small.

The ordinals in the specification and the claims of the presentinvention, such as “first”, “second”, “third”, etc., have no sequentialrelationship, and are just for distinguishing between two differentcomponents with the same name. In the specification of the presentinvention, the word “couple” refers to any kind of direct or indirectelectronic connection. The present invention is disclosed in thepreferred embodiments as described above, however, the breadth and scopeof the present invention should not be limited by any of the embodimentsdescribed above. Persons skilled in the art can make small changes andretouches without departing from the spirit and scope of the invention.The scope of the invention should be defined in accordance with thefollowing claims and their equivalents.

What is claimed is:
 1. An electronic device, comprising: an indoorpositioner, having an array antenna to receive a wireless signal from anuser equipment, and to calculate the angle of arrival (AOA) of thewireless signal according to the phase difference and the timedifference; wherein the wireless signal comprises status data of theuser equipment, and the status data comprise a motion state and avelocity direction of the user equipment; a positioning engine server,converting the angle of arrival into a set of coordinates correspondingto a position of the user equipment; wherein the positioning engineserver inputs the set of coordinates into an interacting multiple (IMM)module; wherein the IMM module calculates weighting values for a firststate module and a second state module of the IMM module according tothe status data of the user equipment, and outputs an estimated set ofcoordinates according to the set of coordinates and the weightingvalues; wherein the first state module has a first weighting value, andthe second state module has a second weighting value; when the userequipment is in a stationary state, the first weighting value is largerthan the second weighting value; when the user equipment is in a movingstate, the second weighting value is larger than the first weightingvalue.
 2. The electronic device as claimed in claim 1, wherein the firststate module and the second state module calculate the estimated set ofcoordinates at a current time point according to the set of coordinatesat the current time point and the estimated set of coordinates at aprevious time point.
 3. The electronic device as claimed in claim 2,wherein the first state module outputs a first estimated set ofcoordinates, the second state module outputs a second estimated set ofcoordinates, and the estimated set of coordinates are equal to the firstestimated set of coordinates multiplied by the first weighting valueplus the second estimated set of coordinates multiplied by the secondweighting value.
 4. The electronic device as claimed in claim 1, whereina sum of the first weighting value and the second weighting value isequal to
 1. 5. The electronic device as claimed in claim 3, wherein thefirst state module obtain the first estimated set of coordinates throughmultiplying the set of coordinates at the current time point by a firstmatrix; a relationship between the set of coordinates at the currenttime point, the first estimated set of coordinates, and the first matrixis expressed in equation 1 below: $\begin{matrix}{{\overset{\hat{}}{X}}_{k|k}^{1} = {\begin{bmatrix}x \\y \\z \\v_{x} \\v_{y} \\v_{z}\end{bmatrix}_{X} = {{\begin{bmatrix}1 & 0 & 0 & 0 & 0 & 0 \\0 & 1 & 0 & 0 & 0 & 0 \\0 & 0 & 1 & 0 & 0 & 0 \\0 & 0 & 0 & 0 & 0 & 0 \\0 & 0 & 0 & 0 & 0 & 0 \\0 & 0 & 0 & 0 & 0 & 0\end{bmatrix}Y_{k}} + \begin{bmatrix}w_{x} \\w_{y} \\w_{z} \\w_{v_{x}} \\w_{v_{y}} \\w_{v_{z}}\end{bmatrix}}}} & {{equation}\mspace{20mu} 1}\end{matrix}$ wherein {circumflex over (X)}_(k|k) ¹ is the firstestimated set of coordinates at time point k; Y_(k) is the set ofcoordinates corresponding to the position of the user equipment at thetime point k; x, y, z are positions included in the first estimated setof coordinates; v_(x), v_(y), v_(z) are velocities included in the firstestimated set of coordinates; w_(x), w_(y), w_(z), w_(vx), w_(vy),w_(vz) are process noises; and the first matrix is expressed as:$\begin{bmatrix}1 & 0 & 0 & 0 & 0 & 0 \\0 & 1 & 0 & 0 & 0 & 0 \\0 & 0 & 1 & 0 & 0 & 0 \\0 & 0 & 0 & 0 & 0 & 0 \\0 & 0 & 0 & 0 & 0 & 0 \\0 & 0 & 0 & 0 & 0 & 0\end{bmatrix}.$
 6. The electronic device as claimed in claim 3, whereinthe second state module obtain the second estimated set of coordinatesthrough multiplying the set of coordinates at the current time point bya second matrix; a relationship between the set of coordinates at thecurrent time point, the second estimated set of coordinates, and thesecond matrix is expressed in equation 2 below: $\begin{matrix}{{\overset{\hat{}}{X}}_{k|k}^{2} = {\begin{bmatrix}x \\y \\z \\v_{x} \\v_{y} \\v_{z}\end{bmatrix}_{X} = {{\begin{bmatrix}1 & 0 & 0 & {d\; T} & 0 & 0 \\0 & 1 & 0 & 0 & {d\; T} & 0 \\0 & 0 & 1 & 0 & 0 & {d\; T} \\0 & 0 & 0 & 1 & 0 & 0 \\0 & 0 & 0 & 0 & 1 & 0 \\0 & 0 & 0 & 0 & 0 & 1\end{bmatrix}Y_{k}} + \begin{bmatrix}w_{x} \\w_{y} \\w_{z} \\w_{v_{x}} \\w_{v_{y}} \\w_{v_{z}}\end{bmatrix}}}} & {{equation}\mspace{20mu} 2}\end{matrix}$ wherein {circumflex over (X)}_(k|k) ² is the secondestimated set of coordinates at time point k; Y_(k) is the set ofcoordinates corresponding to the position of the user equipment at timepoint k; x, y, z are positions included in the second estimated set ofcoordinates; v_(x), v_(y), v_(z), are velocities included in the secondestimated set of coordinates; w_(x), w_(y), w_(z), w_(vx), w_(vy),w_(vz) are process noises or measuring noises; and the second matrix isexpressed as: $\quad\begin{bmatrix}1 & 0 & 0 & {d\; T} & 0 & 0 \\0 & 1 & 0 & 0 & {d\; T} & 0 \\0 & 0 & 1 & 0 & 0 & {d\; T} \\0 & 0 & 0 & 1 & 0 & 0 \\0 & 0 & 0 & 0 & 1 & 0 \\0 & 0 & 0 & 0 & 0 & 1\end{bmatrix}$ where dT is a time interval of recursive sampling.
 7. Theelectronic device as claimed in claim 1, wherein the IMM module updatesa module transferring possibility between the first state module and thesecond state module according to the set of coordinates and theweighting values; wherein the module transferring possibility is:$\quad\begin{bmatrix}p_{11} & p_{12} \\p_{21} & p_{22}\end{bmatrix}$ wherein p₁₁ is a possibility for staying in the firststate module; p₁₂ is a possibility for transferring from the first statemodule to the second state module; p₂₁ is a possibility for transferringfrom the second state module to the first state module; and p₂₂ is apossibility for staying in the second state module.
 8. A method, forimproving smoothness and precision of positioning, comprising: receivinga wireless signal from user equipment; calculating the angle of arrival(AOA) of the wireless signal according to the phase difference and thetime difference; wherein the wireless signal comprises status data ofthe user equipment, and the status data comprise a motion state and avelocity direction of the user equipment; converting the angle ofarrival into a set of coordinates corresponding to a position of theuser equipment; inputting the set of coordinates to an IMM module;wherein the IMM module comprises a first state module and a second statemodule; calculating, by the IMM module, weighting values for the firststate module and the second state module according to the status data ofthe user equipment; and outputting an estimated set of coordinatesaccording to the set of coordinates and the weighting values; whereinthe first state module has a first weighting value, and the second statemodule has a second weighting value; when the user equipment is in astationary state, the first weighting value is larger than the secondweighting value; when the user equipment is in a moving state, thesecond weighting value is larger than the first weighting value.
 9. Themethod as claimed in claim 8, wherein the first state module and thesecond state module calculates the estimated set of coordinates at thecurrent time point according to the set of coordinates at the currenttime point and the estimated set of coordinates at a previous timepoint.